package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.ArrayList;
import java.util.List;

public interface MovementApi {
    String publish(Movement movement);

    PageResult<Movement> findPageByUserId(Long userId, Integer page, Integer pageSize);

    List<Movement> findFriendMovements(Long userId, Integer page, Integer pageSize);

    List<Movement> randamMovements(Integer pagesize);

    List<Movement> findMovementsByPids(List<Long> pidList);

    Movement findById(String id);

    PageResult findAllMovements(Integer page, Integer pagesize, Long uid, Integer state);

    void updateState(String movementId, int state);
}
